<?php

require_once ($cfgPaths['lib'].'cms/cmsPostProcessor.o.inc.php');
require_once ($cfgPaths['lib'].'ext/html2fpdf/html2fpdf.php');

class cmsPostProcessor_html2fpdf extends cmsPostProcessor
{
  function cmsPostProcessor_html2fpdf ($conf)
  {
    parent::cmsPostProcessor($conf);
  }
  
  function process ($str)
  {
    $pdf = new HTML2FPDF();
    $pdf->showNOIMG_GIF(false);
    $pdf->AddPage();
    $pdf->WriteHTML($str);
    return $pdf->Output('','S');
  }

}

?>
